package com.cg.slms.service;

import java.util.List;

import com.cg.slms.dao.IEmployeeDao;
import com.cg.slms.domain.Employee;

public class EmployeeService implements IEmployeeService {
	private IEmployeeDao employeeDao;
	public List<Employee> findEmployee(Employee employee) {
		return employeeDao.findEmployee(employee);
	}
	public IEmployeeDao getEmployeeDao() {
		return employeeDao;
	}
	public void setEmployeeDao(IEmployeeDao employeeDao) {
		this.employeeDao = employeeDao;
	}
	//增加
		public boolean addEmployee(Employee employee) {
			return employeeDao.addEmployee(employee);
		}
		//查id
		public boolean updateEmployee(Employee employee) {
			return employeeDao.updateEmployee(employee);
		}
		//修改
		public Employee findEmployeeById(String id) {
			return employeeDao.findEmployeeById(id);
		}
		public boolean deleteEmployeeById(String id) {
			return employeeDao.deleteEmployeeById(id);
		}

}
